/*
 * @Author: your name
 * @Date: 2021-12-26 17:46:18
 * @LastEditTime: 2021-12-26 17:48:35
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /flutter-learning/Dart_Basic_Grammer/lib/Animal.dart
 */

class Animal {
  String name = "";
  int age = 0;

  Animal(this.name, this.age);

  Animal.setInfo(String name, int age) {
    this.name = name;
    this.age = age;
  }

  void printInfo() {
    print("${this.name}----${this.age}");
  }

}